package com.bean;

import com.MybatisUtil.DateUtils;

import java.util.Date;
import java.util.List;

public class News {
    private int id;
    private String title;
    private String content;
    private int usersId;
    private int categoryId;
    private Date pubtime;
    private String keywords;
    private int state;
    private int checkUsersId;
    private Date chcekTime;
    private int isElite;
    private String usersName;
    private String categoryName;
    private String checkUsersName;
    private Users owner;
    private List<Replys> replys;
    private Date createTime;

    public Date getCreateTime() {
        return createTime;
    }

    public List<Replys> getReplys() {
        return replys;
    }

    public void setReplys(List<Replys> replys) {
        this.replys = replys;
    }

    public Users getOwner() {
        return owner;
    }

    public void setOwner(Users owner) {
        this.owner = owner;
    }

    public String getPubtimeString(){
        return DateUtils.format(pubtime);
    }

    public String getUsersName() {
        return usersName;
    }

    public void setUsersName(String usersName) {
        this.usersName = usersName;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getCheckUsersName() {
        return checkUsersName;
    }

    public void setCheckUsersName(String checkUsersName) {
        this.checkUsersName = checkUsersName;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getUsersId() {
        return usersId;
    }

    public void setUsersId(int usersId) {
        this.usersId = usersId;
    }

    public int getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(int categoryId) {
        this.categoryId = categoryId;
    }

    public Date getPubtime() {
        return pubtime;
    }

    public void setPubtime(Date pubtime) {
        this.pubtime = pubtime;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public int getCheckUsersId() {
        return checkUsersId;
    }

    public void setCheckUsersId(int checkUsersId) {
        this.checkUsersId = checkUsersId;
    }

    public Date getChcekTime() {
        return chcekTime;
    }

    public void setChcekTime(Date chcekTime) {
        this.chcekTime = chcekTime;
    }

    public int getIsElite() {
        return isElite;
    }

    public void setIsElite(int isElite) {
        this.isElite = isElite;
    }

}
